home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / print / proff.zip / LOOKUP.H < prev    next >
Text File  |  1988-02-12  |  585b  |  28 lines

  1. /*
  2.  * from K&R "The C Programming language"
  3.  * Table lookup routines 
  4.  * structure and definitions
  5.  *
  6.  */
  7.  
  8.                     /* basic table entry */
  9. struct hashlist {
  10.     char    *name;
  11.     char    *def;
  12.     struct    hashlist *next;        /* next in chain     */
  13. };
  14.                     /* basic table entry */
  15. struct lexlist {
  16.     char    *name;
  17.     int    val;            /* lexical value     */
  18.     int    flag;            /* optional flag val */
  19.     struct    lexlist  *link;        /* next in chain     */
  20. };
  21.  
  22.  
  23. #define HASHMAX    100            /* size of hashtable */
  24.  
  25. extern struct
  26. lexlist    (*(*lextable))[];/* global pointer for lexical analyser hash table */
  27.  
  28.